#include<stdio.h>

void f(float a, float b, float *c, float *d)
{
	*c = a + b;
	*d = a - b;
}
int main()
{
	float a, b, c, d;
	scanf("%f %f", &a, &b);
	f(a, b, &c, &d);
	printf("%.1f %.1f", c, d);
	return 0;
}
